#queryInput[contenteditable]:empty:not(:focus):before {
    content: attr(placeholder);
    color: #999;
}

#queryInput[contenteditable] {
    outline: none;
}

.input-container {
    position: relative;
    flex-grow: 1;
}

.send-button {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 2px solid #ADD8E6;
    background: transparent;
    color: #ADD8E6;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
}

.send-button:hover {
    background: #ADD8E6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.send-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.send-button::after {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 10px solid currentColor;
}

#historyContainer {
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
}

.history-item {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    display: flex;
}

.history-item:hover {
    background-color: #f5f5f5;
}

.history-item:last-child {
    border-bottom: none;
}

.history-index {
    font-weight: bold;
    margin-right: 10px;
    min-width: 20px;
}

.history-content {
    flex-grow: 1;
}

.clear-history-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    float: right;
    font-size: 12px;
}

.clear-history-btn:hover {
    background-color: #c82333;
}

.amis-scope .panel-heading {
    position: relative;
}

.save-button {
    position: absolute;
    right: 10px;
    top: 3px;
    z-index: 100;
    padding: 0 3px;
    font-size: 9px;
    height: auto;
}